﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 暴力Register
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < 10; i++)
            {
                webBrowser1.Document.GetElementById("txtUserName").SetAttribute("value", "b");
                webBrowser1.Document.GetElementById("txtPassword").SetAttribute("value", "c");
                //InvokeMember：引発事件
                webBrowser1.Document.GetElementById("btnRegister").InvokeMember("click");
            }
        }
    }
}
